<html xmlns:th="https://www.thymeleaf.org">
<head>
    <title>登录</title>
</head>
<body>
<h1>登录</h1>
<div th:if="${param.error}">
    用户名或密码错误
</div>
<form th:action="@{/login}" method="post">
    <div>
        <label>
            <input type="text" name="username" placeholder="用户名"/>
        </label>
        <br/>
        <label>
            <input type="password" name="password" placeholder="密码"/>
        </label>
    </div>
    <button type="submit" value="登录">登录</button>
</form>
</body>
</html>